package org.example.erp.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.example.erp.domain.Sales;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.example.erp.domain.SysUser;


import java.util.List;

/**
* @author dell
* @description 针对表【sales】的数据库操作Mapper
* @createDate 2024-10-28 15:43:27
* @Entity org.example.erp.domain.Sales
*/
public interface SalesMapper extends BaseMapper<Sales> {

//    IPage<Sales> findSalesOutbound (
//            @Param(value = "page") Page<Sales> page,
//            @Param(value ="salesCodes") String salesCodes,
//            @Param(value ="salesCode") String salesCode,
//            @Param(value ="status") String status,
//            @Param(value ="customerName") String customerName,
//            @Param(value ="salesDate") String salesDate);
//Page<Sales> findLoginLog (IPage<Sales> page,@Param("salesCode") String salesCode, @Param("salesOrder") String salesOrder, @Param("status") String status, @Param("customerName") String customerName, @Param("salesDate") String salesDate);

//IPage<Sales>findSalesOutbound(@Param(value = "page") Page<Sales> page, @Param(value ="salesCode") String salesCode);
IPage<Sales>findSales(@Param(value = "page") Page<Sales> page,@Param(value = "salesCodes")String salesCodes,@Param(value ="salesCode")String salesCode,@Param(value ="status")String status,@Param(value ="customerName")String customerName,@Param(value ="salesDate")String salesDate);

}




